import Vue from 'vue'
import Main from './Main.vue'
import router from './router/index'
import store from './store/index'
import Component from './components'
import './utils/dateFn'
import axios from './utils/axios'

Vue.config.productionTip = false;

Vue.prototype.$axios = axios;
Component(Vue);

new Vue({
    router,
    store,
    render: h => h(Main)
}).$mount('#app');

((doc, win) => {
    const element = doc.documentElement;
    element.style.fontSize = (document.documentElement.clientWidth / 37.5) + 'px';
    win.onresize = ()=>{
        element.style.fontSize = (document.documentElement.clientWidth / 37.5) + 'px';
    }
})(document, window);
